Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build service in the docker image #1125

Merged
merged 5 commits into from
Dec 18, 2023
Merged

Build service in the docker image #1125

merged 5 commits into from
Dec 18, 2023

Conversation

acrrd
Copy link
Contributor

@acrrd acrrd commented Dec 18, 2023

Build the service in the docker image. This allows us to build the service on any machine.
We use cargo-chef to cache the build of the dependencies.

Based on #1124

acrrd and others added 4 commits December 18, 2023 10:27
All the deploy we have pass that migration point so this test is
useless.

Pointing to our version in the past increase the compilation time for
the tests by 30s.
This also create problem with cargo chef that is not able to handle
a self dependency on an older version.
@github-actions github-actions bot added the ready-for-review The PR can be reviewed label Dec 18, 2023
@acrrd acrrd requested a review from x3ro December 18, 2023 10:28
@acrrd acrrd changed the title Build service in the docker image, with caching Build service in the docker image Dec 18, 2023
amd64) ORT_ARCH="x64" ;;\
arm64) ORT_ARCH="aarch64" ;;\
esac; \
cp -r project/assets/"$ORT_DIR"/linux_"$ORT_ARCH"/lib/* assets/lib
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to change project/assets/$ORT_DIR to project/$ORT_DIR because $ORT_DIR appears to already contain assets/.

Copy link
Contributor

@x3ro x3ro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I make the change described in my comment, then just compose-all-build works 👍🏼

@acrrd
Copy link
Contributor Author

acrrd commented Dec 18, 2023

@x3ro done

Base automatically changed from remove_obsolete_test to main December 18, 2023 16:10
Copy link
Contributor

@x3ro x3ro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@acrrd acrrd added this pull request to the merge queue Dec 18, 2023
Merged via the queue into main with commit 74c2861 Dec 18, 2023
7 checks passed
@acrrd acrrd deleted the fix_compose_all branch December 18, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The PR can be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants